
words = '与其临渊羡鱼，不如退而结网。'
reset_one = words.find('鱼')
print(reset_one)
reset_two = words.find('鱼',6)
print(reset_two)
id_card = "110101199003074512"
dizhi = id_card[:6]
print("地址码：",dizhi)
zheng = id_card[6:10]
fan = id_card[-12:-8]
print("出生年(正)：",zheng)
print("出生年(反)：",fan)
birth_month = id_card[10:12]
birth_day = id_card[12:14]
print("出生年月:",zheng,"年",birth_month,"月",birth_day,"日")
gender_num = int(id_card[16])
gender = "男性" if gender_num % 2 ==1 else "女性"
print("性别：",gender)